//service
import Request from "@/service/index";
import axios from "axios";

export function PostPageListData(pageName: string, queryInfo: any) {
  return Request.post({
    url: pageName,
    data: queryInfo,
  });
}

export function getPageListData(url: string, queryInfo: any) {
  return Request.post({
    url: url,
    data: queryInfo,
  });
}

export function deletePageData(url: string) {
  return Request.delete({
    url: url,
  });
}
//新建
export function createPageData(url:string,createData:any){
  return Request.post({
    url:url,
    data:createData,
  })
}
//编辑
export function editPageData(url: string, editData: any) {
  return Request.patch({
    url: url,
    data: editData,
  });
}

//请求菜单数据

